package br.trainee.web.dao.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.enterprise.context.RequestScoped;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.transaction.UserTransaction;

import br.trainee.web.dao.service.ITipoTelefoneDAO;
import br.trainee.web.vo.TipoTelefoneVO;

@RequestScoped
public class TipoTelefoneDAOImpl extends EntityDAOImpl<TipoTelefoneVO, Long> implements ITipoTelefoneDAO{
	
	@PersistenceContext(unitName="WebJsf")
	private EntityManager em;
	
	@Resource
	private UserTransaction userTransaction;
	
	
	public TipoTelefoneDAOImpl() {
		
		super(TipoTelefoneVO.class);
	}
	
	@Override
	public EntityManager getEntityManager() {
		
		return this.em;
	}

	@Override
	public UserTransaction getUserTransaction() {
		
		return this.userTransaction;
	}
	
	
}
